﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace HashTables
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            HashTable<string, Nullable<int>> hash = new HashTable<string, Nullable<int>>(10);
            hash.Add("Andy", 30);
            hash.Add("Matt", 31);
            hash.Add("Laetitia", 28);
            hash.Add("Jason", 33);
            hash.Add("Becky", 27);
            hash.Add("Andy1", 31);
            hash.Add("Matt1", 32);
            hash.Add("Laetitia1", 29);
            hash.Add("Jason1", 34);
            hash.Add("Becky1", 28);

            hash.Remove("Laetitia1");
            hash.Remove("Laetitia");

            Nullable<int> age1 = hash.Lookup("Tarzan");
            Nullable<int> age2 = hash.Lookup("Matt1");

            bool test = true;
        }
    }
}
